.poster-layer {
  font-size: 14px;
  color: #222;

  .poster-table-list {
    min-height: 300px;
    width: calc(100% + 32px);
    position: relative;
    overflow: auto;

    .poster-table-item-checkbox {
      position: absolute;
      top: 10px;
      left: 10px;
    }

    .poster-table-item {
      width: calc(16.66% - 32px);
      margin-right: 32px;
      display: inline-block;

      .poster-table-content {
        position: relative;
        width: 100%;
        padding-top: 100%;
        background: #f5f5f7;
        text-align: center;
        border-radius: 4px;
        overflow: hidden;

        &:hover {
          //background-color: rgba(20, 20, 102, .5);
          cursor: pointer;

          .poster-table-toolbox {
            visibility: visible;
          }
        }

        .img {
          object-fit: contain;
          position: absolute;
          top: 5%;
          right: 5%;
          width: 90%;
          height: 90%;
        }

        .poster-table-toolbox {
          visibility: hidden;
          position: absolute;
          top: 0;
          left: 15%;
          bottom: 0;
          background: rgba(31, 31, 102, 0.95);
          color: #fff;
          display: flex;
          justify-content: center;
          align-items: center;
          width: 70%;

          .poster-toolbox-list {
            width: 100%;
            font-size: 16px;
            padding: 20px;
          }

          .poster-toolbox-item {
            width: 100%;
            line-height: 40px;
            margin: 4px 0;
            border: 1px solid hsla(0, 0%, 100%, 0);
            color: #fff;

            &:hover {
              border: 1px solid hsla(0, 0%, 100%, .5);
              border-radius: 4px;
              cursor: pointer;
            }
          }
        }
      }

      .poster-table-info {
        .poster-info-name {
          width: 100%;
          margin-top: 12px;
        }

        .poster-info-content {
          display: flex;
          justify-content: space-between;
          margin: 2px 0 24px;
          font-size: 12px;
          color: #999;
        }
      }
    }
  }
}

.tips-text {
  font-size: 12px;
  color: #666;
}

.poster-content {
  background: #f0f0f2;
  font-size: 14px;
  color: #222;

  .poster-content-left {
    width: calc(40% - 16px);
    height: calc(100vh - 128px);
    margin-right: 16px;
    padding: 24px 26px;
    border-radius: 8px;
    background: #fff;
    overflow: scroll;

    .poster-content-mobile {
      position: relative;
      width: 300px;
      // height: 98%;
      height: 650px;
      box-sizing: content-box;
      border: 6px solid #000;
      border-radius: 40px;
      margin: 0 auto;
      box-shadow: -20px 20px 60px -20px rgba(0, 0, 0, .3);
      overflow: hidden;
    }

    .poster-preview-wrapper {
      height: 100%;
      width: 100%;
      background: #000;

      .poster-preview-show {
        position: absolute;
        max-width: 100%;
        overflow-x: hidden;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
      }
    }
  }

  .poster-content-right {
    width: 60%;
    height: calc(100vh - 128px);
    border-radius: 8px;
    background: #fff;
    overflow: scroll;

    .article-content-btn {
      position: sticky;
      top: 0;
      border-bottom: 1px solid #e6e7eb;
      background: #fff;
      padding: 12px;
      display: flex;
      justify-content: flex-end;
      z-index: 2;
    }

    .poster-content-form {
      padding: 24px;

      .poster-template-list {
        min-width: 640px !important;

        .poster-template-item {
          padding: 0;
          padding-top: 6px;
          margin-right: 16px;
          width: calc(15% - 22px);
          max-width: 140px;
          display: inline-block;
          cursor: pointer;
          background: #fff;
        }

        .poster-template-img {
          // border: 1px solid rgba(0, 0, 0, .1);
          box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .2);
          border-radius: 4px;
          transition: transform .3s;
        }

        .img {
          width: 85%;
          height: 80px;
          border-radius: 3px;
        }

        .template-name {
          text-align: center;
          line-height: 22px;
          margin-top: 12px;
          font-size: 14px;
        }

        .template-unit {
          font-size: 12px;
          color: #999;
          text-align: center;
          line-height: 18px;
        }
      }
    }
  }
}

.poster-preview-img {
  width: 100%;
  object-fit: contain;
}

.poster-preview-info {
  width: 100%;
  background: #fff;
  display: flex;
  justify-content: space-between;
  padding: 12px;
  position: relative;
  top: -1px;
  align-items: center;

  .preview-info-left {

    .icon-poster-user,
    .avatar-poster-user {
      width: 44px;
      height: 44px;
      font-size: 44px;
      line-height: 44px;
      margin-right: 12px;
      border-radius: 100%;
    }

    .avatar-poster-user {
      font-size: 20px;
    }

    .info_card_nick {
      font-size: 16px;
      line-height: 24px;
    }

    .info_card_ent {
      color: #999;
    }
  }

  .code-preview-img {
    width: 80px;
    height: 80px;
  }
}

.poster-download {
  position: absolute;
  top: 0;
  z-index: -1;
  background: transparent;
}
